import request from '@/utils/request.js';



//项目集列表
export const ProjectList = (form) => {
  return request({
    url: '/project/list',
    method: 'post',
    data: form
  });
};

//项目集id查询
export const ProjectGetById = (form) => {
  return request({
    url: '/project/getById',
    method: 'post',
    data: form
  });
};


//项目集新增或修改
export const ProjectSaveOrUpdate = (form) => {
  return request({
    url: '/project/saveOrUpdate',
    method: 'post',
    data: form
  });
};


//项目集删除
export const ProjectDelete = (form) => {
  return request({
    url: '/project/delete',
    method: 'post',
    data: form
  });
};

//项目集下拉
export const ProjectSetSelect = () => {
  return request({
    url: '/project/setSelect',
    method: 'post'
  });
};


//产品列表
export const ProductList = (form) => {
  return request({
    url: '/product/list',
    method: 'post',
    data: form
  });
};

//产品删除
export const ProductDelete = (form) => {
  return request({
    url: '/product/delete',
    method: 'post',
    data: form
  });
};
//产品id查询
export const ProductGetById = (form) => {
  return request({
    url: '/product/getById',
    method: 'post',
    data: form
  });
};


//产品新增或修改
export const ProductSaveOrUpdate = (form) => {
  return request({
    url: '/product/saveOrUpdate',
    method: 'post',
    data: form
  });
};

//项目集对应产品下拉
export const ProductSelect = (form) => {
  return request({
    url: '/product/productSelect',
    method: 'post',
    data: form
  });
};

//项目集看板统计
export const setKanban = () => {
  return request({
    url: '/project/setKanban',
    method: 'post'
  });
};
